package com.css.fxfzypg.modules.earthquakedisasterloss.repository;

import com.css.fxfzypg.modules.earthquakedisasterloss.entity.TrafficAnalysis;
import com.css.fxfzypg.modules.earthquakedisasterloss.entity.YpgJcClimate;
import com.css.fxfzypg.modules.earthquakedisasterloss.entity.YpgResultSlope;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description: fxfzypg
 * @Author: lhl
 * @CreateDate: 2022/11/15 10:15
 */
public interface CountLandslideRepository {
    Boolean getSTIntersects(String geomText, String geomText1);

    int saveYpgResultSlope(YpgResultSlope entity);

    String saveYpgResultSlopeData(YpgResultSlope entity);

    List<YpgResultSlope> getByTaskId(String taskId);

    //根据任务ID、模型类型判断是否更换模型则删除全部计算结果
    public boolean isDeleteAllResultByType(String taskId,String resultSource);

    int delYpgResultSlope(String taskId,String dzIntensity);

    TrafficAnalysis getTrafficAnalysisByTaskId(String taskId,String dzIntensity);

    int saveTrafficAnalysis(TrafficAnalysis entity);

    int updateTrafficAnalysis(TrafficAnalysis entity);

    String getSlopeModelIntensity(String taskId);

    int saveYpgJcClimate(YpgJcClimate entity);
    int delYpgJcClimate(String taskId);

}
